]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Run dialog: Make error message translatable
authorAdel Gadllah <adel.gadllah@gmail.com>
Mon, 5 Oct 2009 21:53:50 +0000 (23:53 +0200)
committerAdel Gadllah <adel.gadllah@gmail.com>
Mon, 5 Oct 2009 21:53:50 +0000 (23:53 +0200)
Allow the error message to be translated.

https://bugzilla.gnome.org/show_bug.cgi?id=597422

js/ui/runDialog.js

index 1d6ae4abfbaab2c60d1d2269ee7be587a31d2b32..69c243426e7bd9779d290d69f7a970fa2cc9ef24 100644 (file)
@@ -170,7 +170,7 @@ RunDialog.prototype = {
                  * We are only interested in the actual error, so parse that out.
                  */
                 let m = /.+\((.+)\)/.exec(e);
-                let errorStr = "Execution of '" + command + "' failed:\n" + m[1];
+                let errorStr = _("Execution of '%s' failed:").format(command) + "\n" + m[1];
                 this._errorMessage.set_text(errorStr);
                 this._errorBox.show();
             }